package wang.lcs.pay.ex;

import javax.servlet.http.HttpServletResponse;

public class HttpRequestException extends IllegalArgumentException {

    private static final long serialVersionUID = 1L;
    private int code = HttpServletResponse.SC_INTERNAL_SERVER_ERROR;

    public HttpRequestException(int code, String message) {
        super(message);
        this.code = code;
    }

    public HttpRequestException(String message) {
        super(message);
    }

    public int getCode() {
        return code;
    }
}
